// tabBarComponent/tabBar.js
const app = getApp();
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        tabbar: {
            type: Object,
            value: {
                "backgroundColor": "#ffffff",
                "color": "#979795",
                "selectedColor": "#1c1c1b",
                  "list": [{
                          "pagePath": "/pages/index/index",
                          "selectedIconPath": " ../../images/foot1_03.png",
                          "iconPath": "../../images/foot_03.png",
                          "text": "首页"
                      },
                      {
                          "pagePath": "/pages/shop/shop",
                          "selectedIconPath": "../../images/foot1_05.png",
                          "iconPath": "../../images/foot_05.png",
                          "text": "商城"
                      },
                      {
                          "pagePath": "/pages/sheep/sheep",
                          "selectedIconPath": "../../images/sheep_03.png",
                          "iconPath": "../../images/sheep_03.png",
                        "isSpecial": true,
                          "text": "养羊"
                      },
                      {
                          "pagePath": "/pages/cart/cart",
                          "selectedIconPath": "../../images/foot1_07.png",
                          "iconPath": "../../images/foot_07.png",
                          "text": "购物车"
                      },
                      {
                          "pagePath": "/pages/my/my",
                          "selectedIconPath": "../../images/foot1_09.png",
                          "iconPath": "../../images/foot_09.png",
                          "text": "我的"
                      }
                  ]
            }
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        isIphoneX: null
    },


  lifetimes: {
      ready: function () {
        this.setData({
                 isIphoneX: app.globalData.systemInfo.model.search('iPhone X') != -1 ? true : false
             })
      },

  },
    /**
     * 组件的方法列表
     */
    methods: {

    }
})
